package com.honor.games.wg.graphics.actors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.google.common.eventbus.EventBus;
import com.honor.games.wg.entities.WGBoard;
import com.honor.games.wg.entities.WGCoordinates;
import com.honor.games.wg.events.TileClickedEvent;
import com.honor.games.wg.graphics.WGGraphics;
import com.honor.games.wg.services.WGMathServices;

public class WGBoardClickListener extends ClickListener {

	private WGBoardActor boardActor;
	private WGGraphics graphics;
	
	public WGBoardClickListener(WGBoardActor boardActor, WGGraphics graphics) {
		this.boardActor = boardActor;
		this.graphics = graphics;
	}
	
	@Override
	public void clicked(InputEvent event, float x, float y) {
		graphics.handleBoardClick(boardActor, x, y);
	}
	
}
